package allod.som.initializer

import allod.som.functions.metric.EuclideanMetric
import allod.som.Lattice.Neuron
import allod.som.Metric
import allod.som.input.InputSource

/**
 * Created by IntelliJ IDEA.
 * User: allod
 * Date: 7 січ 2010
 * Time: 21:20:33
 */

case class SampleInitializer(val inputSource: InputSource, val iMetric: Metric)
        extends Initializer {
  def inputDimension(): Int = inputSource.inputDimension

  def metric: Metric = iMetric

  def createNeuron(layerIndex: Int, neuronIndex: Int): Neuron = {
    inputSource.randomElement
  }
}
